home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
archive
/
bat4pkz.arj
/
ZIPUNDO.BAT
< prev
Wrap
DOS Batch File
|
1994-02-14
|
3KB
|
101 lines
@echo off
cls
rem zipundo.bat
if "%1" == "" goto help
if not exist %1 goto nopath
if "%2" == "" goto message
if "%2" == "a:\" goto begin
if "%2" == "b:\" goto begin
if "%2" == "c:\" goto begin
if "%2" == "d:\" goto begin
if "%2" == "e:\" goto begin
if "%2" == "f:\" goto begin
if "%2" == "g:\" goto begin
if "%2" == "h:\" goto begin
if "%2" == "i:\" goto begin
if "%2" == "j:\" goto begin
if "%2" == "A:\" goto begin
if "%2" == "B:\" goto begin
if "%2" == "C:\" goto begin
if "%2" == "D:\" goto begin
if "%2" == "E:\" goto begin
if "%2" == "F:\" goto begin
if "%2" == "G:\" goto begin
if "%2" == "H:\" goto begin
if "%2" == "I:\" goto begin
if "%2" == "J:\" goto begin
if not exist %2\nul goto newpath
if exist %2 goto begin
:begin
echo The file %1 will be unpacked to %2
echo.
echo.
echo.
choice /c:cq /n Press C for Continue or Q to Quit?
if errorlevel 2 goto exit
if errorlevel 1 goto doit
:doit
cls
c:\pkzip\pkunzip -d -$ %1 %2
goto end
:newpath
echo.
echo.
echo The destination directory you specified doesn't exist, if you
echo would like to create it press C, else press Q to Quit.
choice /c:cq
if errorlevel 2 goto exit
if errorlevel 1 goto make
:make
cls
md %2
c:\pkzip\pkunzip -d -$ %1 %2
goto end
:message
echo.
echo.
echo The %1 file will be extracted to the current directory
echo if this is not what you would like to do, then press
echo.
echo Q to quit, else press G to go on....
echo.
choice /c:qg
if errorlevel 2 goto goon
if errorlevel 1 goto exit
:goon
cls
c:\pkzip\pkunzip -d -$ %1
goto end
:nopath
echo.
echo.
echo.
echo The source path or filename you specified does not exist...
echo check and try again !
goto exit
:help
echo.
echo.
echo Usage: zipundo.bat (path&zip file name) (path for unpacking)
echo.
echo Example: zipundo c:\try\tag.zip d:\new
echo.
echo.
echo This would take the "tag.zip" file of the specified directory
echo and extract it to d:\new. If destination directory doesn't
echo exist, it will be created.
goto exit
:end
cls
echo.
echo.
echo.
echo ╔═══════════════════════════╗
echo ║ DDDD OOO N N EEEE ║
echo ║ D D O O NN N E ║
echo ║ D D O O N N N EEE ║
echo ║ D D O O N NN E ║
echo ║ DDDD OOO N N EEEE ║
echo ╚═══════════════════════════╝
:exit